home *** CD-ROM | disk | FTP | other *** search
-
- This is a XPR that is a derivative of a program written by Wayne Crosbie.
- The original program was written for MSDOS machines by Rod Boissinot,
-
- The Setup parameters are:
-
- Y - The current Year.
- O - the offset from UTC.
-
- The library requires AmigaDos 2.04, and makes use of the 'DATE'
- CLI command to actually set the date, so it must be on the path. The
- library must be called from a process (Which all XPR hosts are, I just
- wanted to mention that to make sure), and can be used from within
- a script within any XPR supporting terminal package, even though it
- was written for use with Welmat.
-
- Included with the archive is a message that talks about this information
- being sent out on a shortwave radio station. If you do not have access to
- a dialup time constant, then you may wish to look into setting up a 300bps
- modem to a radio.
-
- Russell McOrmond rwm@Atronx.OCUnix.On.Ca Net Support:(613) 230-2282(V.32Bis)
- FidoNet 1:163/109 Welmat Help 1:1/139 Current WELMAT 'keeper of sources'.
-
-
- Here is an example WPL script to set your clock. One should be able
- to translate the general idea of what it is doing to a VLT script, or to any
- other XPR supporting scripting language.
-
-
-
- ; This is a WPL script used to set the clock according to the
- ; National Research Center's atomic clock.
- nrctime:
- setbaud 300
- ModemInit
- SmartSend "|~~ATDT9527729|"
- set state DIALING
- clear event
- GetResponse 45
- Print "GetResponse-Out: $(RC) Event:$(event)\n"
- cmpi $(event) "CONNECT"
- FalseJump nrcout
- set state SESSION
- Print "Connected to NRC - Running Library\n"
-
- ; The year is 1992, and we should subtract 5 hours from UTC
- XprSetup xprclock.library "Y1992,O-5"
- PutLog "[$(line)] $<time> Setup $(XprSetup) RC:$(RC)\n"
-
- ; it doesn't matter if you do a send or receive, it's the same thing
- XprSend ""
- PutLog "[$(line)] $<time> NRC $(RC)\n"
- XprClose
-
- nrcout:
- Print "Switching back to 2400bps\n"
- setbaud 2400
- ; now go back to answering the phone.
- jump waitring
-
-